#!/bin/sh
#结束守护进程
# 1 ubuntu
#app_pid_list=$(ps aux | grep -v 'grep' | grep -w "startD" | awk '{print $2}')
# 2 openwrt
app_pid_list=$(ps w | grep -v 'grep' | grep -w "startD" | awk '{print $1}')
echo "kill -9 "$app_pid_list
kill -9 $app_pid_list

#结束app
APP_NAME="DataCenter"
# 1 ubuntu
#app_pid_list=$(ps aux | grep -v 'grep' | grep -w "$APP_NAME" | awk '{print $2}')
# 2 openwrt
app_pid_list=$(ps w | grep -v 'grep' | grep -w "$APP_NAME" | awk '{print $1}')
echo "kill -9 "$app_pid_list
kill -9 $app_pid_list

exit 0
